﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace sp500
{
    class Sp500Dailyquote
    {
        private string companysymbolTX;

        public string CompanysymbolTX
        {
            get
            {
                return companysymbolTX;
            }
            set
            {
                if (value!=null)
                {
                    companysymbolTX = value;
                }
                else
                {
                    // TODO!!! set my own exception hierarchy
                    throw new FormateException("The input argument is wrong");
                }
            }
        }

        // TODO!!!
        private DATATX transationdataTX;
        public DATATX TransationdataTX
        {
            get
            {
                return transationdataTX;
            }
            set
            {
                // check data tyep 
                // must rewrite the data class
                transationdataTX = value;
            }
        }

        // short cut for the DATATX
        private string transationdataStringTX;
        public string TransationdataStringTX
        {
            get
            {
                return transationdataStringTX;
            }
            set
            {
                transationdataStringTX = value;
            }
        }

        private double openpriceTX;
        public double OpenpriceTX
        {
            get
            {
                return openpriceTX;
            }
            set
            {
                openpriceTX = value;
            }
        }

        private double highpriceTX;
        public double HighpriceTX
        {
            get
            {
                return highpriceTX; 
            }
            set
            {
                highpriceTX = value;
            }
        }

        private double lowpriceTX;
        public double LowpriceTX
        {
            get
            {
                return lowpriceTX;
            }
            set
            {
                lowpriceTX = value;
            }
        }

        private double closepriceTX;
        public double ClosepriceTX
        {
            get
            {
                return closepriceTX;
            }
            set
            {
                closepriceTX = value;
            }
        }

        private int volumeSizeTX;
        public int VolumeSizeTX
        {
            get
            {
                return volumeSizeTX;
            }
            set
            {
                volumeSizeTX = value;
            }
        }

        private double adjClosePriceTX;
        public double AdjClosePriceTX
        {
            get
            {
                return adjClosePriceTX;
            }
            set
            {
                adjClosePriceTX = value;
            }
        }


    }
}
